fw_tune()
{
    $INSTALL -D -m 755 ${BSP_GENERICFS_DIR}/gui/xinitrc ${ROOTFS_DIR}/etc/X11/xinit/xinitrc
    $INSTALL -D -m 644 ${BSP_GENERICFS_DIR}/gui/full_fullscreen-3.4-fx.xpi ${ROOTFS_DIR}/home/root/full_fullscreen-3.4-fx.xpi

    $INSTALL -D -m 644 ${BSP_GENERICFS_DIR}/asko-splash.jpg ${ROOTFS_DIR}/usr/share/dancesplashfb/artwork/asko-splash.jpg || error
    echo "image /usr/share/dancesplashfb/artwork/asko-splash.jpg" > ${ROOTFS_DIR}/etc/dancesplashfb.conf
    echo "fontsize 14" >> ${ROOTFS_DIR}/etc/dancesplashfb.conf

    rm -rf ${ROOTFS_DIR}/var/www/htdocs
    cp -a ${BSP_SRC_DIR}/htdocs ${ROOTFS_DIR}/var/www
    find ${ROOTFS_DIR}/var/www -name ".svn" | xargs rm -rf

    mkdir -p ${ROOTFS_DIR}/var/run/motion
    mkdir -p ${ROOTFS_DIR}/var/www/htdocs/cams/default
    $INSTALL -D -m 644 ${BSP_GENERICFS_DIR}/motion/motion.conf ${ROOTFS_DIR}/etc/motion.conf

    $INSTALL -D -m 755 ${BSP_GENERICFS_DIR}/rc.local ${ROOTFS_DIR}/etc/rc.local

    test -d ${ROOTFS_DIR}/usr/lib/dri && rm -f ${ROOTFS_DIR}/usr/lib/dri/*
}

fw_tune
